import type * as Europe18w from "./type"
import { request } from "@/http/axios"

/** 根据条件查询欧洲18万数据 */
export function getMatchPredictEurope18wanApi(data: Europe18w.MatchPredictEurope18wanApiCondition) {
  return request<Europe18w.MatchPredictEurope18wanResponseData>({
    url: "match-predict/historical-europe-18wan",
    method: "post",
    data
  })
}

/** 获取欧洲赔率数据 */
export function getFootballEuropeOddsApi(data: { fid: number }) {
  return request<Europe18w.FootballEuropeOddsResponse>({
    url: "match-predict/football-europe-odds",
    method: "post",
    data
  })
}

/** 获取历史欧洲293-18万数据分析 */
export function getHistoricalEurope29318wanApi(data: Europe18w.MatchPredictEurope29318wanApiCondition) {
  return request<Europe18w.MatchPredictEurope29318wanResponse>({
    url: "match-predict/historical-europe-293-18wan",
    method: "post",
    data
  })
}

/** 更新最值设置 */
export function updateMatchesEurope18wMinMaxApi(data: Europe18w.MatchesEurope18wMinMaxUpdateRequest) {
  return request<Europe18w.MatchesEurope18wMinMaxResponse>({
    url: "match-predict/update-matches-europe-18w-min-max",
    method: "post",
    data
  })
}

/** 获取合理性分析详情数据 */
export function getEurope18wAnalysisDetailApi(data: { fid: number }) {
  // 这里可以根据实际需求调整API路径和参数
  return request<any>({
    url: "match-predict/europe-18w-analysis-detail",
    method: "post",
    data
  })
}

/** 获取相同欧洲293分析数据 */
export function getSameEurope293AnalysisApi(data: Europe18w.SameEurope293AnalysisCondition) {
  return request<Europe18w.V293InitSameEuropeFinalResponse>({
    url: "match-predict/same-europe-293-analysis",
    method: "post",
    data
  })
}

/** 根据fid获取最值设置数据 */
export function getMatchesEurope18wMinMaxApi(data: { fid: number }) {
  return request<Europe18w.MatchesEurope18wMinMaxResponse>({
    url: `match-predict/get-matches-europe-18w-min-max/${data.fid}`,
    method: "get"
  })
}

/** 根据fid删除最值设置数据 */
export function deleteMatchesEurope18wMinMaxApi(fid: number) {
  return request<Europe18w.MatchesEurope18wMinMaxResponse>({
    url: `match-predict/delete-matches-europe-18w-min-max/${fid}`,
    method: "delete"
  })
}

/** 获取欧洲18万返回测试统计数据 */
export function getMatchPredictEurope18wReturnTestStatisticsApi(data: Europe18w.MatchPredictEurope18wReturnTestStatisticsCondition) {
  return request<Europe18w.MatchPredictEurope18wReturnTestStatisticsResponse>({
    url: "match-predict/europe-18wan-return-test-statistics",
    method: "post",
    data
  })
}
